import request from '@/utils/request'

// 查询VIEW列表
export function listView(query) {
  return request({
    url: "/system/income/list",
    method: "get",
    params: query,
  });
}

// 查询VIEW详细
export function getView(merchId) {
  return request({
    url: '/system/income/' + merchId,
    method: 'get'
  })
}

// 新增VIEW
export function addView(data) {
  return request({
    url: "/system/income",
    method: "post",
    data: data,
  });
}

// 修改VIEW
export function updateView(data) {
  return request({
    url: "/system/income",
    method: "put",
    data: data,
  });
}

// 删除VIEW
export function delView(merchId) {
  return request({
    url: "/system/income/" + merchId,
    method: "delete",
  });
}
